package com.itheima.staticProxy.proxy;

import com.itheima.common.Sing;

/**
 * 代理对象： 经纪人
 * @author zhangyan
 * @Version 1.0
 */
public class ProxyStar implements Sing {

    private Sing sing;
    public ProxyStar(Sing sing){

        this.sing = sing;
    }

    @Override
    public void sing() {
        System.out.println("我是经纪人，我要去谈合同，安排时间");
        //明星来唱歌
        sing.sing();

        System.out.println("我是经纪人，歌唱完了，我要按照合同收费");
    }
}
